﻿<!DOCTYPE html>
<html>
<head>
    <title>@ViewBag.Title</title>
    <link href="@Url.Content("~/Content/Site.css")" rel="stylesheet" type="text/css" />
    <script src="@Url.Content("~/Scripts/jquery-1.5.1.min.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/modernizr-1.7.min.js")" type="text/javascript"></script>
    @RenderSection("PageScripts",false)
</head>

<body>
    
    <ul id="menu">
    <li>@Html.ActionLink("Clients", "Index", "NewClient")</li>
    <li>@Html.ActionLink("Projects", "Index", "Project")</li>
    <li>@Html.ActionLink("Enter Time", "EnterTime", "Home")</li>
    <li>@Html.ActionLink("Users", "Index", "User")</li>
    <li>@Html.ActionLink("PayRoll", "Index", "Pay")</li>
		<li>@Html.ActionLink("Reports", "Index", "Report")</li>
		<li>@Html.ActionLink("Invoice", "Index", "Invoice")</li>
        <li>@Html.ActionLink("Choose Project", "WorkOnProject", "Home")</li>
	</ul> 
<section id="main">
    @RenderBody()
</section>
</body>
</html>
 
 <script type="text/javascript">


 	setInterval(function () {
 		// Check to see here if we need to continue by asking the server if we still need the popup
 		$.ajax({ url: "/Home/CheckNeedPopup" }).done(function (data) {
 			if (data.Popup == true) {
 				window.open('/Home/Popup/', 'Popup', 'height=' + (window.screen.height - 900) + ',width=800,left=' + ((window.screen.width) / 3) + ',top=500,status=no,toolbar=no,resizable=yes,scrollbars=yes');
 			}
 		});
 	}, 300000)//300000 is five minutes

     	
 </script>